#
# @lc app=leetcode.cn id=3174 lang=python
#
# [3174] 清除数字
#

# @lc code=start
class Solution(object):
    def clearDigits(self, s):
        """
        :type s: str
        :rtype: str
        """
        stack=[]
        for c in s:
            if c.isalpha():
               stack.append(c)
            elif c.isdigit():stack.pop() 
        return ''.join(stack)
# @lc code=end

